package com.bgl.mall.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bgl.mall.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author buguoliang
 */
public interface OrderItemMapper extends BaseMapper<OrderItem> {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(OrderItem record);

    OrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderItem record);

    int updateByPrimaryKey(OrderItem record);

    List<OrderItem> getByOrderNoUserId(@Param("userId") Integer userId, @Param("orderNo") Long orderNo);

    List<OrderItem> getByOrderNo(@Param("orderNo") Long orderNo);

    void batchInsert(@Param("orderItemList") List<OrderItem> orderItemList);
}